package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
public interface PermissionDao {
    Set<Permission> findPermissionsByRoleId(Integer roleId);

    Page<Permission> findPagedata( String queryString);


    void addPermission(Permission permission);

    void dele(Integer id);


    Permission findById(Integer id);

    void edit(Permission permission);
}
